<template>
  <div class="banner">
    <el-carousel :interval="4000" type="card" height="200px">
      <el-carousel-item v-for="item in bannerList" :key="item">
        <el-image style="width:100%;height:100%" :src="item.imageUrl">

        </el-image>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script lang='ts'>
import { defineComponent } from "vue";

  interface banner{
      name:string,
      src:string
  }
export default defineComponent({


  
  setup() {

    return {
  
    };
  },

  props:{
      bannerList:{
          type:Array
      }
  }
});
</script>
 
<style lang = "scss" scoped>
@import "../../assets/css/home.scss";
</style>